<?php
namespace app\index\controller;

use think\Controller;
use think\Db;
use think\Request;
use app\index\model\NavModel;
class Base extends Controller
{
    public function _initialize() {
		$navModel = new NavModel();
		$nav = $navModel->where(['pid'=>0,'is_cate'=>0])->order(['sort asc','id asc'])->select()->toArray();
		$this->assign([
			"Nav" => $nav
		]);
	}
}
